<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            color: red;
        }
        p{
            background-color: green;
        /*    都设置p2:p的优先级高*/
            /*color: green;*/
            /*提升优先级：important*/
            color: green !important;
        }
        #p1{
            color: blue;
        }
    </style>
</head>
<body>
<p id="p1">p1</p>
<div>
<!--    继承特性，超链接不受影响-->
    <p>p2</p>
    <span>span1</span>
    <a href="">超链接</a>

</div>


</body>
</html>